const logger = require('../middleware/logger');

/**
 * @param {import('../index').Application} app 
 */
module.exports = (app) => {
  const { router, controller } = app;

  const validateRouter = router.namespace('/validate', logger);

  validateRouter.post('/update-validate', controller.validate.updateKey);
  validateRouter.get('/get-all-validate', controller.validate.getAllValidate);
  validateRouter.get('/delete-validate', controller.validate.deleteValidateById);
  validateRouter.get('/get-validate', controller.validate.getValidateById);
};